package com.ljq.software_springboot.softwareprogram.controller;


import com.ljq.software_springboot.softwareprogram.entity.ChatMember;
import com.ljq.software_springboot.softwareprogram.imp.ChatMemberServiceImpl;
import com.ljq.software_springboot.softwareprogram.imp.ChatMessageServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2024-12-29
 */
@RestController
@RequestMapping("/chat-member")
@CrossOrigin(origins = "http://localhost:5173")
public class ChatMemberController {
    @Autowired
    ChatMemberServiceImpl   chatMemberService;
    @PostMapping("findmember")
    public List<ChatMember> findmember(@RequestBody ChatMember chatMember){
        return  chatMemberService.findmember(chatMember.getGroupId());
    }
}
